package com.trxy.mapper;

import com.trxy.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface UserMapper {
    User selectByNameAndPassword(@Param("name") String name,@Param("password") String password);

    User selectByName(String name);

    List<User> selectAll(String name);

    User userState(int id);

    void updateState(String state, int id);
}